package com.xxl.job.executor.sample.frameless.test.singleton;

//线程不安全
public class LazySingleton1 {
    private LazySingleton1() {}
    private static LazySingleton1 lazySingleton1 = null;
    //静态工厂方法
    public static LazySingleton1 getInstance() {
        if (lazySingleton1 == null) {
            lazySingleton1 = new LazySingleton1();
        }
        return lazySingleton1;
    }
}
